package cn.wolfcode.cmis.dao.lmpl;

import cn.wolfcode.cmis.dao.IUserDAO;
import cn.wolfcode.cmis.domain.User;
import cn.wolfcode.cmis.util.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;

public class UserDAOImpl implements IUserDAO {

    @Override
    public User checkUser(User user) {
        SqlSession session = MyBatisUtil.openSqlSession();
        User u = session.selectOne("cn.wolfcode.cmis.mapper.UserMapper.checkUser", user);
        session.close();
        return u;
    }


}
